<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnInitializationInStepUpstreamTable extends AbstractMigration
{
    public function up()
    {
        $this->table('step_upstream')
            ->addColumn('initialization', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '初始化'])
            ->addColumn('relevance', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '关联性'])
            ->save();

    }

    public function down()
    {
        $this->table('step_upstream')
            ->removeColumn('initialization')
            ->removeColumn('relevance')
            ->save();
    }
}
